package com.huike.service;

import com.huike.dto.DepartmentDto;
import com.huike.dto.PageDepartmentDto;
import com.huike.entity.Department;
import com.huike.result.PageResult;
import com.huike.result.Result;

import java.util.List;

public interface DepartmentService {

    //分页部门查询
    Result<List<Department>> list(PageDepartmentDto dto);

    //查询所有部门
    Result<List<Department>> findAllDept();

    //新增部门
    Result add(DepartmentDto dto);

    //根据id查询回显
    Result<Department> findById(Integer id);

    //修改部门
    Result updateDepartment(DepartmentDto dto);

    //根据id删除部门
    Result deleteById(Integer id);
}
